package day5.HomeWork;

public class Worker extends Employee {
    private int days;

    public Worker() {
    }

    public Worker(String name, String gender, String date,  int days) {
        super(name, gender, date);
        this.days = days;
    }

    @Override
    public void computeSalary() {
        double salary = days*200;
        System.out.println("工人 "+getName()+"本月工资为 "+salary+" 元。");
    }
}
